package constant.milk.periodapp.dialog;

import constant.milk.periodapp.R;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class MilkCheckDialog extends Dialog
{
	private TextView titleTextView;
	private TextView messageTextView;
	private TextView checkTextView;
	
	private String title;
	private String message;
	
	private View.OnClickListener listener;
	
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.dialog_check);
		
		
		titleTextView = (TextView) findViewById(R.id.dialogCheckTitleTextView);
		messageTextView = (TextView) findViewById(R.id.dialogCheckMessageTextView);
		checkTextView = (TextView) findViewById(R.id.dialogCheckTextView);
		
		titleTextView.setText(title);
		messageTextView.setText(message);
		
		checkTextView.setOnClickListener(listener);
	}

	public MilkCheckDialog(Context context, String title, String message, View.OnClickListener listener)
	{
		super(context, android.R.style.Theme_Translucent_NoTitleBar);
		this.title = title;
		this.message = message;
		this.listener = listener;
	}
}
